package com.yonyou.ucf.mdf.app.isvdxq.exception.entity;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.google.gson.Gson;
import com.yonyou.iuap.yms.param.BaseEntity;
import com.yonyou.iuap.yms.annotation.*;

@JsonInclude(JsonInclude.Include.NON_NULL)
@JsonIgnoreProperties(ignoreUnknown = true)
@YMSEntity
@YMSTable(tableName = "dxq_exceptions")
public class ExceptionEntity extends BaseEntity {

    // '异常来源 1PC，2手持，3android手机，4iphone手机'
    private Integer source;

    // '异常内容',
    private String exception;

    //'发生异常模块',
    private String exceptionModel;

    // 'IP地址',
    private String ip;

    // '操作人外键',
    @YMSColumn(name="fk_userID")
    private String fk_userID;

    // '屏幕分辨率,宽*高',
    private String pixels;

    //'手机厂商',
    private String deviceBrand;

    //'设备唯一标识',
    private String deviceID;

    // '手机型号',
    private String systemModel;

    //'手机系统版本号',
    private String systemVersion;

    //'app版本号',
    private String appVersion;

    private String remark;

    // '异常日志表主键ID',
    private String id;

    @Override
    public String toString() {
        return new Gson().toJson(this);
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getException() {
        return exception;
    }

    public void setException(String exception) {
        this.exception = exception;
    }

    public String getExceptionModel() {
        return exceptionModel;
    }

    public void setExceptionModel(String exceptionModel) {
        this.exceptionModel = exceptionModel;
    }

    public String getAppVersion() {
        return appVersion;
    }

    public void setAppVersion(String appVersion) {
        this.appVersion = appVersion;
    }

    public String getDeviceID() {
        return deviceID;
    }

    public void setDeviceID(String deviceID) {
        this.deviceID = deviceID;
    }

    public String getSystemVersion() {
        return systemVersion;
    }

    public void setSystemVersion(String systemVersion) {
        this.systemVersion = systemVersion;
    }

    public String getSystemModel() {
        return systemModel;
    }

    public void setSystemModel(String systemModel) {
        this.systemModel = systemModel;
    }

    public String getDeviceBrand() {
        return deviceBrand;
    }

    public void setDeviceBrand(String deviceBrand) {
        this.deviceBrand = deviceBrand;
    }

    public String getPixels() {
        return pixels;
    }

    public void setPixels(String pixels) {
        this.pixels = pixels;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }

    public String getFk_userID() {
        return fk_userID;
    }

    public void setFk_userID(String fk_userID) {
        this.fk_userID = fk_userID;
    }

    public Integer getSource() {
        return source;
    }

    public void setSource(Integer source) {
        this.source = source;
    }
}
